<template>
  <div id="nav">
    <router-link to="/">Home</router-link> |
    <router-link to="/about">About</router-link> |
    <router-link to="/demo">Demo</router-link> |
    <router-link to="/demo2">Demo2</router-link> |
    <router-link to="/demo3">Demo3</router-link> |
    <router-link to="/demo4">Demo4</router-link> |
    <router-link to="/excel">Excel</router-link> |
    <router-link to="/xlsx">XLSX</router-link> |
    <router-link to="/echarts">Echarts Demo</router-link>|
    <router-link to="/attrs">attrs</router-link>|
    <router-link to="/newAPI">newAPI</router-link>|
    <router-link to="/demoParents">demoParents</router-link>|
    <router-link to="/demoPeity">peity</router-link>|
    <router-link to="/roll">roll</router-link>
  </div>
  <router-view/>
</template>
<script lang="ts">
import * as echarts from 'echarts'
import axios from 'axios'
import { provide } from 'vue'

export default {
  name: 'App',
  setup () {
    provide('echarts', echarts)
    provide('axios', axios)
  }
}
</script>
<style lang="scss">
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

#nav {
  a {
    font-weight: bold;
    color: #2c3e50;

    &.router-link-exact-active {
      color: #42b983;
    }
  }
}
</style>
